package org.dromara.business.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.dromara.business.domain.Message;
import org.dromara.business.domain.Room;
import org.dromara.business.domain.bo.MessageBo;
import org.dromara.business.domain.vo.MessageVo;
import org.dromara.common.mybatis.core.page.PageQuery;

import java.util.List;

/**
 * 系统消息Service接口
 *
 * @author zlj
 * @date 2024-08-26
 */
public interface RoomService extends IService<Room> {


    List<Room> getRoomList();

    Boolean getUnRead();

    void send(MessageBo bo);

    Message send(Long senderId, Long receiverId, String messageContent);

    Boolean removeRoom(Long roomId);

    IPage<MessageVo> getMsgList(Long roomId, PageQuery pageQuery);

    MessageVo sendByRoomId(MessageBo bo);

    Long getRoomId(Long receiverId);
}
